﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class UserControls_V_News_Datalist : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    //获得新闻类型
    public void gettypeName(string typeName)
    {
        VPINews.BLL.News bll_news = new VPINews.BLL.News();
     
        string str = "TypeName='" + typeName + "'";
  
        //绑定10条数据 按发布日期
        news_dl.DataSource = bll_news.GetList(10, str, "PubDate desc");
        news_dl.DataBind();
    }

}
